home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
snip0493.zip
/
SOUND.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-05
|
598b
|
31 lines
/*
** SOUND.C
**
** Original Copyright 1988-1991 by Bob Stout as part of
** the MicroFirm Function Library (MFL)
**
** This subset version is functionally identical to the
** version originally published by the author in Tech Specialist
** magazine and is hereby donated to the public domain.
*/
#include "sound.h"
void soundon(void)
{
short value;
value = inp(SCNTRL);
value |= SOUNDON;
outp(SCNTRL, value);
}
void soundoff(void)
{
short value;
value = inp(SCNTRL);
value &= SOUNDOFF;
outp(SCNTRL, value);
}